class Solution
{
public:
    vector<int> constructRectangle(int area)
    {
        for (int L = static_cast<int>(ceil(sqrt(area))); L <= area; ++L)
        {
            if (area % L == 0)
            {
                return {L, area / L};
            }
        }
        return {area, 1};
    }
};